package com.macro.mall.mapper;

import com.macro.mall.model.BasicKeyText;
import com.macro.mall.model.BasicKeyTextExample;
import com.macro.mall.pojo.BasicKeyTextVo;
import com.macro.mall.query.BasicKeyTextQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BasicKeyTextMapper {
    long countByExample(BasicKeyTextExample example);

    int deleteByExample(BasicKeyTextExample example);

    int deleteByPrimaryKey(Long id);

    int insert(BasicKeyText record);

    int insertSelective(BasicKeyText record);

    List<BasicKeyText> selectByExample(BasicKeyTextExample example);

    BasicKeyText selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") BasicKeyText record, @Param("example") BasicKeyTextExample example);

    int updateByExample(@Param("record") BasicKeyText record, @Param("example") BasicKeyTextExample example);

    int updateByPrimaryKeySelective(BasicKeyText record);

    int updateByPrimaryKey(BasicKeyText record);

    List<BasicKeyTextVo> list(BasicKeyTextQuery query);

    BasicKeyText getByKeyName(String keyName);
}